<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "bus_member_debt".
 *
 * @property string $debt_id
 * @property string $member_id
 * @property string $debt_time
 * @property string $total_count
 * @property string $already_paid
 * @property string $debt_count
 * @property string $debt_name
 * @property string $member_name
 * @property integer $debt_state
 * @property string $shop_id
 * @property string $boss_id
 */
class BusMemberDebt extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'bus_member_debt';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['member_id', 'total_count', 'already_paid', 'debt_count', 'debt_name', 'member_name', 'shop_id', 'boss_id'], 'required'],
            [['member_id', 'debt_state', 'shop_id', 'boss_id'], 'integer'],
            [['debt_time'], 'safe'],
            [['total_count', 'already_paid', 'debt_count'], 'number'],
            [['debt_name', 'member_name'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'debt_id' => 'Debt ID',
            'member_id' => 'Member ID',
            'debt_time' => 'Debt Time',
            'total_count' => 'Total Count',
            'already_paid' => 'Already Paid',
            'debt_count' => 'Debt Count',
            'debt_name' => 'Debt Name',
            'member_name' => 'Member Name',
            'debt_state' => 'Debt State',
            'shop_id' => 'Shop ID',
            'boss_id' => 'Boss ID',
        ];
    }
}
